﻿using CanDoo.Oil.Core.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDoo.Oil.Core.DTOs
{
    /// <summary>
    /// 1.1.15更换油桶状态上报。
    /// </summary>
    public class ChangeOilDrumInfo
    {
        /// <summary>
        /// epc
        /// </summary>
        [Display(Name = "epc")]
        [Required]
        public string epc { get; set; }

        /// <summary>
        /// tid
        /// </summary>
        [Display(Name = "tid")]
        [Required]
        public string tid { get; set; }

        /// <summary>
        /// 门店号
        /// </summary>
        [Display(Name = "门店号")]
        [Required]
        public string storeNo { get; set; }
        /// <summary>
        /// 终端编号
        /// </summary>
        [Display(Name = "终端编号")]
        [Required]
        public string terminalNo { get; set; }
        /// <summary>
        /// 换桶通道
        /// </summary>
        [Display(Name = "换桶通道")]
        [Required]
        public int oilPort { get; set; }
        /// <summary>
        /// 操作类型 1为换油桶，2为清洗管道
        /// </summary>
        [Display(Name = "操作类型")]
        [Required]
        public int type { get; set; }
        /// <summary>
        /// 操作描述
        /// </summary>
        [Display(Name = "操作描述")]
        [Required]
        public string operation { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        [Display(Name = "操作时间")]
        [Required]
        public DateTime operationTime { get; set; }
        /// <summary>
        /// 换油桶状态 1为成功，2为失败
        /// </summary>
        [Display(Name = "换油桶状态")]
        [Required]
        public OilSerialStatus status { get; set; }
    }

}
